package cn.com.jtang.wedding.service.impl;

import java.util.List;
import java.util.Map;

import cn.com.jtang.wedding.dao.ApplicationDao;
import cn.com.jtang.wedding.model.Application;
import cn.com.jtang.wedding.service.ApplicationManager;

public class ApplicationManagerImpl implements ApplicationManager {

	private ApplicationDao applicationDao;

	public ApplicationDao getApplicationDao() {
		return applicationDao;
	}

	public void setApplicationDao(ApplicationDao applicationDao) {
		this.applicationDao = applicationDao;
	}
	
	public String insert(Application application){
		return applicationDao.insert(application);
	}
	
	public Application queryById(Long id){
		return applicationDao.queryById(id);
	}
	
	public int updateById(Long id, Application application){
		return applicationDao.updateById(id, application);
	}
	
	public int deleteById(Long id){
		return applicationDao.deleteById(id);
	}
	
	public List queryAll(Map<String, Object> map, int start,int end, String... orderByStr){
		return applicationDao.queryAll(map, start, end, orderByStr);
	}
	
	public int getCount(Map<String, Object> map){
		return applicationDao.getCount(map);
	}
	
	
}
